<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>acceptance_data</title>
		<link href="<%=path%>/pattern/cm/css/add.css" type="text/css"
			rel="stylesheet" />
		<script type="text/javascript">
		function saveItems() {
		var selectFlags = document.getElementsByName("selectFlag");
		var flag = false;
		var index = 0;
		var ids='';
		for (var i=0; i<selectFlags.length; i++) {
			if (selectFlags[i].checked) {
			    //已经有选中的checkbox
				flag = true;
				index = i;
				ids+=selectFlags[i].value;
				ids+=',';
			}
		}
		
		//删除提示
		if (window.confirm("确认保存配置信息?")) {
			with(document.forms[0]) {
				action='<%=path%>/config.action?Ids='+ids;
				method="post";
				submit();
			}
		}
	}
		</script>
	</head>
	<body>
		<form method="post">
		<!--   --------------   --    任务信息   -----      --------     ---------- -->
			<div class="layout" >
				<div class="title" align="center">
					基本信息获取
				</div>

				<div id="content" >

					<div class="four_columns" >
						<div class="four_columns_text" style="text-align:left">
							<input type="checkbox" name="selectFlag" value="a1">端口扫描
						</div>
						<div class="four_columns_text" style="text-align:left">
						 	<input type="checkbox" name="selectFlag" value="a2">数据库类型  
						</div>
						<div class="four_columns_text" style="text-align:left">
							<input type="checkbox" name="selectFlag" value="a3">网站语言  
						</div>
						<div class="four_columns_text" style="text-align:left">
							<input type="checkbox" name="selectFlag" value="a4">域名信息  
						</div>
						<div class="four_columns_text" style="text-align:left">
							<input type="checkbox" name="selectFlag" value="a5">网站模板  
						</div>
						<div class="clear"></div>
					</div>
					<div class="four_columns">
						<div class="four_columns_text" style="text-align:left">
							<input type="checkbox" name="selectFlag" value="a6">操作系统类型
						</div>
						<div class="four_columns_text" style="text-align:left">
						 	<input type="checkbox" name="selectFlag" value="a7">对象信息
						</div>
						<div class="four_columns_text" style="text-align:left">
							<input type="checkbox" name="selectFlag" value="a8">Web服务器  
						</div>
						<div class="four_columns_text" style="text-align:left">
							<input type="checkbox" name="selectFlag" value="a9">路径信息 
						</div>
						<div class="clear"></div>
					</div>
				</div>
			</div>
	<!--   --------------   --    web漏洞信息   -----      --------     ---------- -->
	<div class="layout">
				<div class="title" align="center">
					Web漏洞扫描
				</div>
				<div id="content">
					<div class="four_columns" >
						<div class="four_columns_text" style="text-align:left">
							<input type="checkbox" name="selectFlag" value="b1">跨站脚本检测
						</div>
						<div class="four_columns_text" style="text-align:left">
						 	<input type="checkbox" name="selectFlag" value="b2">remote file include漏洞  
						</div>
						<div class="four_columns_text" style="text-align:left">
							<input type="checkbox" name="selectFlag" value="b3">Generic漏洞  
						</div>
						<div class="four_columns_text" style="text-align:left">
							<input type="checkbox" name="selectFlag" value="b4">SQL注入检测
						</div>
						<div class="four_columns_text" style="text-align:left">
							<input type="checkbox" name="selectFlag" value="b5">XML注入检测
						</div>
						<div class="clear"></div>
					</div>
					<div class="four_columns" >
						<div class="four_columns_text" style="text-align:left">
							<input type="checkbox" name="selectFlag" value="b6">Xst漏洞检测
						</div>
						<div class="four_columns_text" style="text-align:left">
						 	<input type="checkbox" name="selectFlag" value="b7">LDAP注入检测 
						</div>
						<div class="four_columns_text" style="text-align:left">
							<input type="checkbox" name="selectFlag" value="b8">SSI注入检测
						</div>
						<div class="four_columns_text" style="text-align:left">
							<input type="checkbox" name="selectFlag" value="b9">Xsrf检测
						</div>
						<div class="four_columns_text" style="text-align:left">
							<input type="checkbox" name="selectFlag" value="b10">Redos漏洞
						</div>
						<div class="clear"></div>
					</div>
					<div class="four_columns" >
						<div class="four_columns_text" style="text-align:left">
							<input type="checkbox" name="selectFlag" value="b11">WEB配置检测
						</div>
						<div class="four_columns_text" style="text-align:left">
						 	<input type="checkbox" name="selectFlag" value="b12">unSSL检测
						</div>
						<div class="four_columns_text" style="text-align:left">
							<input type="checkbox" name="selectFlag" value="b13">缓冲区溢出检测
						</div>
						<div class="four_columns_text" style="text-align:left">
							<input type="checkbox" name="selectFlag" value="b14">敏感信息泄露检测
						</div>
						<div class="four_columns_text" style="text-align:left">
							<input type="checkbox" name="selectFlag" value="b15">sslCertificate检测
						</div>
						<div class="clear"></div>
					</div>
					<div class="four_columns" >
						<div class="four_columns_text" style="text-align:left">
							<input type="checkbox" name="selectFlag" value="b16">BlindSqli漏洞
						</div>
						<div class="four_columns_text" style="text-align:left">
						 	<input type="checkbox" name="selectFlag" value="b17">隐藏文件探测
						</div>
						
						<div class="clear"></div>
					</div>
				</div>
	</div>
	<!--   --------------   --    os漏洞信息   -----      --------     ---------- -->
	<div class="layout">
				<div class="title" align="center">
					OS漏洞扫描
				</div>

				<div id="content">
					<div class="four_columns" >
						<div class="four_columns_text" style="text-align:left">
							<input type="checkbox" name="selectFlag" value="c1">操作系统漏洞扫描测试
						</div>
						<div class="four_columns_text" style="text-align:left">
						 	<input type="checkbox" name="selectFlag" value="c2">操作系统远程系统弱口令猜解
						</div>
						<div class="four_columns_text" style="text-align:left">
							<input type="checkbox" name="selectFlag" value="c3">操作系统安全配置远程测试
						</div>
						<div class="four_columns_text" style="text-align:left">
							<input type="checkbox" name="selectFlag" value="c4">操作系统本地权限提升测试
						</div>
						<div class="four_columns_text" style="text-align:left">
							<input type="checkbox" name="selectFlag" value="c5">操作系统补丁远程检测
						</div>
						<div class="clear"></div>
					</div>
					<div class="four_columns" >
						<div class="four_columns_text" style="text-align:left">
							<input type="checkbox" name="selectFlag" value="c6">操作系统远程溢出测试
						</div>
						<div class="four_columns_text" style="text-align:left">
						 	<input type="checkbox" name="selectFlag" value="c7">操作系统端口和服务检测
						</div>
						<div class="four_columns_text" style="text-align:left">
						 	<input type="checkbox" name="selectFlag" value="c8">操作系统应用软件安全检测
						</div>
						<div class="clear"></div>
					</div>
				</div>
				<div id="content">
					<div class="title" align="center">
					<input type="button" onclick="saveItems()" value="保      存" />&nbsp;&nbsp;&nbsp;&nbsp;
					<input type="button" class="but" value="恢复默认" /> 
					</div>
				</div>
	</div>
	</form>
	</body>

</html>


